// 查找用户的菜单权限标识集合
export function findPermissions() {
  let permsData = {
    "code": 200,
    "msg": null,
    "data": [
      "api:member:list"
    ]
  }
  return {
    url: 'user/findPermissions',
    type: 'get',
    data: permsData
  }
}

//获取会员列表
export function fetchList() {
  let data = {
    "code": 200,
    "msg": null,
    "data": {
        "pageNum": 1,
        "pageSize": 5,
        "totalPage": 3,
        "total": 11,
        "list": [{
          'userId': '100',
          'userName': '曾哥',
          'userPhone': '19925798727',
          'userPhoto': 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180615/5acc5248N6a5f81cd.jpg',
          'userRanks': '普通会员',
          'userStatus': 1,
          'parentName': '邀请人',
          'loginType': 'android',
          'accountBalance': 20,
          'registerTime': 1582772171
        }]
      }
  }
  return {
    url: 'user/fetchList',
    type: 'post',
    data: data
  }

}

// 更新状态
export function updateStatus() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {}
  }
  return {
    url: 'user/updateStatus',
    type: 'get',
    data: data
  }
}

// 删除状态
export function updateDeleteStatus() {
  const data = {
    "code": 200,
    "msg": '操作成功',
    "data": {}
  }
  return {
    url: 'user/updateDeleteStatus',
    type: 'get',
    data: data
  }
}
